Chat Support
Loupe - Log - Monitor - Resolve
Loupe.Agent.AspNetCore Namespace / LoupeAgentBuilderExtensions Class / AddAspNetCoreDiagnostics Method / AddAspNetCoreDiagnostics(ILoupeAgentBuilder,Func<IPrincipal>,Func<IPrincipal,Lazy<ApplicationUser>,Boolean>) Method
The Loupe.Agent.Core.Services.ILoupeAgentBuilder instance.
The function to use for IPrincipal resolution
Optional. The function to use for application user mapping from an IPrincipal

AddAspNetCoreDiagnostics(ILoupeAgentBuilder,Func<IPrincipal>,Func<IPrincipal,Lazy<ApplicationUser>,Boolean>) Method
Adds ASP.NET Core diagnostic listeners for standard Loupe metric generation.
Syntax

Parameters

builder
The Loupe.Agent.Core.Services.ILoupeAgentBuilder instance.
principalFunc
The function to use for IPrincipal resolution
applicationUserFunc
Optional. The function to use for application user mapping from an IPrincipal

Return Value

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also